package com.bean.entity;

import java.io.Serializable;

/**
 * 职务实体
 */
public class Role implements Serializable {

    private static final long serialVersionUID = 1L;

    /**职务id*/
    private Integer id;
    /**职务名称*/
    private String name;
    /**职务级别*/
    private Integer level;
    /**职务状态*/
    private Integer state; // 状态  1正常, 2已删除

    public Role() {
    }

    public Role(Integer id, String name, Integer level, Integer state) {
        this.id = id;
        this.name = name;
        this.level = level;
        this.state = state;
    }


    public Role(Integer id) {
        this.id = id;
    }




    @Override
    public String toString() {
        return "Role{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", level=" + level +
                ", state=" + state +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }
}
